package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "news_groupuserset")
//@NamedQueries({@NamedQuery(name = "NewsGroupuserset.findAll", query = "SELECT n FROM NewsGroupuserset n"), @NamedQuery(name = "NewsGroupuserset.findById", query = "SELECT n FROM NewsGroupuserset n WHERE n.groupruleid = :groupruleid")})
public class NewsGroupuserset implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
    @Basic(optional = false)
    @Column(name = "groupruleid")
    private Integer groupruleid;
    @Column(name = "clientid")                   
	private Integer clientid;
	
    
	public NewsGroupuserset(){
		
	}
	public NewsGroupuserset(Integer groupruleid){
		this.groupruleid=groupruleid;
	}
	
	public Integer getGroupruleid() {
		return groupruleid;
	}
	public void setGroupruleid(Integer groupruleid) {
		this.groupruleid = groupruleid;
	}
	public Integer getClientid() {
		return clientid;
	}
	public void setClientid(Integer clientid) {
		this.clientid = clientid;
	}
	
	@Override
    public int hashCode() {
        int hash = 0;
        hash += (groupruleid != null ? groupruleid.hashCode() : 0);
        hash += (clientid != null ? clientid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof NewsGroupuserset)) {
            return false;
        }
        NewsGroupuserset other = (NewsGroupuserset) object;
        if ((this.groupruleid == null && other.groupruleid != null) || (this.groupruleid != null && !this.groupruleid.equals(other.groupruleid))) {
            return false;
        }
        if ((this.clientid == null && other.clientid != null) || (this.clientid != null && !this.clientid.equals(other.clientid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.NewsGroupuserset[groupruleid=" + groupruleid + "]";
    }
	
}
